﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace OALPTool
{
    public partial class Form7 : Form
    {
        public Form7()
        {
            InitializeComponent();
        }

        private void Form7_Load(object sender, EventArgs e)
        {
            TreeNode treeNode1 = new TreeNode();
            treeNode1.Name = "节点16";
            treeNode1.Text = "区域";
            TreeNode treeNode2 = new TreeNode();
            treeNode2.Name = "节点0";
            treeNode2.Text = "级别 04";
            treeNode2.Nodes.Add(treeNode1);

            TreeNode treeNode3 = new TreeNode();
            treeNode3.Name = "节点17";
            treeNode3.Text = "城市";
            TreeNode treeNode4 = new TreeNode();
            treeNode4.Name = "节点1";
            treeNode4.Text = "级别 05";
            treeNode4.Nodes.Add(treeNode3);

            TreeNode treeNode5 = new TreeNode();
            treeNode5.Name = "节点18";
            treeNode5.Text = "级别";
            TreeNode treeNode6 = new TreeNode();
            treeNode6.Name = "节点2";
            treeNode6.Text = "级别 06";
            treeNode6.Nodes.Add(treeNode5);

            TreeNode treeNode7 = new TreeNode();
            treeNode7.Name = "节点19";
            treeNode7.Text = "";
            TreeNode treeNode8 = new TreeNode();
            treeNode8.Name = "节点3";
            treeNode8.Text = "级别 07";
            treeNode8.Nodes.Add(treeNode7);

            TreeNode treeNode9 = new TreeNode();
            treeNode9.Name = "节点20";
            treeNode9.Text = "客户名";
            TreeNode treeNode10 = new TreeNode();
            treeNode10.Name = "节点4";
            treeNode10.Text = "级别 08";
            treeNode10.Nodes.Add(treeNode9);

            TreeNode treeNode11 = new TreeNode();
            treeNode11.Name = "节点21";
            treeNode11.Text = "";
            TreeNode treeNode12 = new TreeNode();
            treeNode12.Name = "节点5";
            treeNode12.Text = "级别 09";
            treeNode12.Nodes.Add(treeNode11);

            TreeNode treeNode13 = new TreeNode();
            treeNode13.Name = "节点22";
            treeNode13.Text = "费用科目";
            TreeNode treeNode14 = new TreeNode();
            treeNode14.Name = "节点6";
            treeNode14.Text = "级别 02";
            treeNode14.Nodes.Add(treeNode13);

            TreeNode treeNode15 = new TreeNode();
            treeNode15.Name = "节点23";
            treeNode15.Text = "";
            TreeNode treeNode16 = new TreeNode();
            treeNode16.Name = "节点7";
            treeNode16.Text = "级别 03";
            treeNode16.Nodes.Add(treeNode15);

            TreeNode treeNode17 = new TreeNode();
            treeNode17.Name = "节点24";
            treeNode17.Text = "上 纳品Val";
            TreeNode treeNode18 = new TreeNode();
            treeNode18.Name = "节点25";
            treeNode18.Text = "上 实绩";
            TreeNode treeNode19 = new TreeNode();
            treeNode19.Name = "节点26";
            treeNode19.Text = "上 纳品实绩费率";
            TreeNode treeNode20 = new TreeNode();
            treeNode20.Name = "节点8";
            treeNode20.Text = "12上（同比）1-4月实绩";
            treeNode20.Nodes.Add(treeNode17);
            treeNode20.Nodes.Add(treeNode18);
            treeNode20.Nodes.Add(treeNode19);

            TreeNode treeNode21 = new TreeNode();
            treeNode21.Name = "节点27";
            treeNode21.Text = "纳品Val";
            TreeNode treeNode22 = new TreeNode();
            treeNode22.Name = "节点28";
            treeNode22.Text = "实绩";
            TreeNode treeNode23 = new TreeNode();
            treeNode23.Name = "节点29";
            treeNode23.Text = "纳品实绩费率";
            TreeNode treeNode24 = new TreeNode();
            treeNode24.Name = "节点9";
            treeNode24.Text = "2013-01";
            treeNode24.Nodes.Add(treeNode21);
            treeNode24.Nodes.Add(treeNode22);
            treeNode24.Nodes.Add(treeNode23);

            TreeNode treeNode25 = new TreeNode();
            treeNode25.Name = "节点30";
            treeNode25.Text = "纳品Val";
            TreeNode treeNode26 = new TreeNode();
            treeNode26.Name = "节点31";
            treeNode26.Text = "实绩";
            TreeNode treeNode27 = new TreeNode();
            treeNode27.Name = "节点32";
            treeNode27.Text = "纳品实绩费率";
            TreeNode treeNode28 = new TreeNode();
            treeNode28.Name = "节点10";
            treeNode28.Text = "2013-02";
            treeNode28.Nodes.Add(treeNode25);
            treeNode28.Nodes.Add(treeNode26);
            treeNode28.Nodes.Add(treeNode27);


            TreeNode treeNode29 = new TreeNode();
            treeNode29.Name = "节点33";
            treeNode29.Text = "单位确认纳品金额";
            TreeNode treeNode30 = new TreeNode();
            treeNode30.Name = "节点34";
            treeNode30.Text = "预算金额";
            TreeNode treeNode31 = new TreeNode();
            treeNode31.Name = "节点35";
            treeNode31.Text = "纳品计划费率";
            TreeNode treeNode32 = new TreeNode();
            treeNode32.Name = "节点11";
            treeNode32.Text = "2013-03";
            treeNode32.Nodes.Add(treeNode29);
            treeNode32.Nodes.Add(treeNode30);
            treeNode32.Nodes.Add(treeNode31);

            TreeNode treeNode33 = new TreeNode();
            treeNode33.Name = "节点36";
            treeNode33.Text = "单位确认纳品金额";
            TreeNode treeNode34 = new TreeNode();
            treeNode34.Name = "节点37";
            treeNode34.Text = "预算金额";
            TreeNode treeNode35 = new TreeNode();
            treeNode35.Name = "节点38";
            treeNode35.Text = "纳品计划费率";
            TreeNode treeNode36 = new TreeNode();
            treeNode36.Name = "节点12";
            treeNode36.Text = "2013-04";
            treeNode36.Nodes.Add(treeNode33);
            treeNode36.Nodes.Add(treeNode34);
            treeNode36.Nodes.Add(treeNode35);

            TreeNode treeNode37 = new TreeNode();
            treeNode37.Name = "节点39";
            treeNode37.Text = "销售金额";
            TreeNode treeNode38 = new TreeNode();
            treeNode38.Name = "节点40";
            treeNode38.Text = "费用金额";
            TreeNode treeNode39 = new TreeNode();
            treeNode39.Name = "节点41";
            treeNode39.Text = "费率";
            TreeNode treeNode40 = new TreeNode();
            treeNode40.Name = "节点13";
            treeNode40.Text = "年间推移1月实绩+2月实绩+3月预算+4月预算";
            treeNode40.Nodes.Add(treeNode37);
            treeNode40.Nodes.Add(treeNode38);
            treeNode40.Nodes.Add(treeNode39);

            TreeNode treeNode41 = new TreeNode();
            treeNode41.Name = "节点14";
            treeNode41.Text = "原因说明（对当月预算进行说明）";

            TreeNode treeNode42 = new TreeNode();
            treeNode42.Name = "节点15";
            treeNode42.Text = "解决方法";

            TreeNode treeNode43 = new TreeNode();
            treeNode43.Name = "节点42";
            treeNode43.Text = "序号";

            TreeNode treeNode44 = new TreeNode();
            treeNode44.Name = "节点43";
            treeNode44.Text = "费率计算";

            TreeNode treeNode45 = new TreeNode();
            treeNode45.Name = "节点44";
            treeNode45.Text = "计算公式";

            TreeNode treeNode46 = new TreeNode();
            treeNode46.Name = "节点45";
            treeNode46.Tag = "hide";
            treeNode46.Text = "汇总标识";

            TreeView ColHeaderTreeView = new TreeView();
            ColHeaderTreeView.Nodes.Add(treeNode2);
            ColHeaderTreeView.Nodes.Add(treeNode4);
            ColHeaderTreeView.Nodes.Add(treeNode6);
            ColHeaderTreeView.Nodes.Add(treeNode8);
            ColHeaderTreeView.Nodes.Add(treeNode10);
            ColHeaderTreeView.Nodes.Add(treeNode12);
            ColHeaderTreeView.Nodes.Add(treeNode14);
            ColHeaderTreeView.Nodes.Add(treeNode16);
            ColHeaderTreeView.Nodes.Add(treeNode20);
            ColHeaderTreeView.Nodes.Add(treeNode24);
            ColHeaderTreeView.Nodes.Add(treeNode28);
            ColHeaderTreeView.Nodes.Add(treeNode32);
            ColHeaderTreeView.Nodes.Add(treeNode36);
            ColHeaderTreeView.Nodes.Add(treeNode40);
            ColHeaderTreeView.Nodes.Add(treeNode41);
            ColHeaderTreeView.Nodes.Add(treeNode42);
            ColHeaderTreeView.Nodes.Add(treeNode43);
            ColHeaderTreeView.Nodes.Add(treeNode44);
            ColHeaderTreeView.Nodes.Add(treeNode45);
            ColHeaderTreeView.Nodes.Add(treeNode46);

            multiColHeaderDgv1.myColHeaderTreeView = ColHeaderTreeView;
            //dgvTmplate.ShowRowNumber = true;
            // dgvTmplate.ColumnHeadersHeight = 60;
        }
    }
}
